﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace PerformanceAssessment.Models
{
    public class Meeting
    {
        [Required(AllowEmptyStrings=false)]
        public string Attendants { get; set; }
        public string Subject { get; set; }
        public string Location { get; set; }
        [Required]
        public DateTime Date { get; set; }
        [Required]
        [Range(0, 23)]
        public byte Hours { get; set; }
        [Required]
        [Range(0, 59)]
        public byte Minutes { get; set; }
        [Required]
        [Range(1, ushort.MaxValue, ErrorMessage = "Please enter a value bigger than 0")]
        public ushort Duration { get; set; }
        public string Description { get; set; }
    }
}